package com.dmgis.qxfw.dataservice.businessservice.api.entity;

/**
 * 功能描述：
 *
 * @auther： zhangyonglong
 * @date：
 * @return：
 * @description
 */
public class Results1 {
    private int code;
    private String msg;
    private int total;
    private Object data;
    private Object data1;


    private Results1(int code, String msg, int total, Object data, Object data1) {
        this.code = code;
        this.msg = msg;
        this.total = total;
        this.data = data;
        this.data1 = data1;
    }



    public static Results1 fail(String msg) {

        return new Results1(500,msg,0,null,null);
    }

    public static Results1 success(String msg, int total, Object data, Object data1) {

        return new Results1(200,msg,total,data,data1);
    }



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
    public Object getData1() {
        return data1;
    }

    public void setData1(Object data1) {
        this.data = data1;
    }

}
